import request from '@/utils/request'

// 工序信息列表
export const GetListAPI = params => {
  return request({
    url: '/production/process/list',
    method: 'GET',
    params
  })
}

// 工艺流程新增
export const AddDataAPI = data => {
  return request({
    url: '/production/process/add',
    method: 'POST',
    data
  })
}

// 工艺流程修改
export const EditDataAPI = data => {
  return request({
    url: '/production/process/edit',
    method: 'PUT',
    data
  })
}

// 工序信息删除
export const DelDataAPI = data => {
  return request({
    url: '/production/process/delete/' + data,
    method: 'DELETE'
  })
}

// 工序信息查看
export const GetViewAPI = data => {
  return request({
    url: '/production/process/view/' + data,
    method: 'GET'
  })
}
